package ch4;

import java.util.*;
//import java.time.*;

public class CalTest {

	public static void main(String[] args) {
		// Calendar
		Calendar c = Calendar.getInstance();
		System.out.println(c);
		int year = c.get(Calendar.YEAR);
		int month = c.get(Calendar.MONTH) + 1;
		int day = c.get(Calendar.DAY_OF_WEEK);
		int date = c.get(Calendar.DATE);
		int week = c.get(Calendar.WEEK_OF_YEAR);
		System.out.println(year + "年" + month + "月" + date + "日");
		System.out.println("今天是周" + day);
		System.out.println("本周是今年第" + week + "周");
		System.out.println(">>>>>>>>>>>>>改时间：");
		// c.set
		c.set(Calendar.DATE, 1);
		c.set(Calendar.MONTH, 9);
		System.out.println(c.getTime());
	}

}
